<template>
  <section class="base-info">
    <section class="close" @click="close">
      <img style="width: 100%;height: 100%;" src="../../../assets/image/base/close.png">
    </section>

    <section class="title">
      站点信息
    </section>
    <section style="max-height: 2.3rem;overflow: overlay">
      <section class="row">
        <section class="label">名称</section>
        <section class="mh">：</section>
        <section class="value">{{data.station_name}}</section>
      </section>
      <section class="row">
        <section class="label">总车位数</section>
        <section class="mh">：</section>
        <section class="value">{{data.bike_pos_count}}</section>
      </section>
      <section class="row">
        <section class="label">可租车辆</section>
        <section class="mh">：</section>
        <section class="value">
          {{data.bike_canhire}}
        </section>
      </section>
      <section class="row">
        <section class="label">可还车辆</section>
        <section class="mh">：</section>
        <section class="value">{{data.bike_canrestore}}</section>
      </section>
    </section>
    <section style="height: .2rem"></section>
  </section>
</template>

<script>
  export default {
    name: 'TmcBaseInfo',
    props: {
      data: {
        type: Object,
        default: () => {
          return {}
        }
      }
    },
    data() {
      return {

      }
    },
    methods: {
      close() {
        this.$emit('close')
      }
    }
  }
</script>

<style scoped>
  .base-info {
    width: 100%;
    height: 100%;
    position: relative;
  }
  .title {
    height: .3rem;
    width: 86%;
    margin: 0 auto;
    text-align: left;
    padding-top: .18rem;
    font-size:16px;
    font-family:Microsoft YaHei;
    font-weight:400;
    color:rgba(255,255,255,1);
    border-bottom: .01rem solid #00FFFFBB;
  }
  .row {
    display: flex;
    text-align: left;
    width: 86%;
    margin: 0 auto;
    padding: .05rem 0 0 0;
    line-height: .2rem;font-size: .12rem;
  }
  .label {
    width: 25%;
    /*height: .2rem;*/
    color:#A4A4A4;text-align:justify;
    text-align-last: justify;
  }
  .mh {
    width: 5%;
    /*height: .2rem;*/
    color:#A4A4A4;
  }
  .value {
    width: 70%;
    /*height: .2rem;*/
  }
  .yw-label {
    font-size: .12rem;
    font-family:Microsoft YaHei;
    font-weight:400;
    color:rgba(254,254,254,0.4);
    padding-top: .1rem;
  }
  .yw-value {
    font-size:16px;
    font-family:Microsoft YaHei;
    font-weight:bold;
    color:rgba(255,255,255,1);
    padding-top: .1rem;
  }
  .close {
    width: .17rem;
    height: .17rem;
    cursor: pointer;
    position: absolute;
    top: .22rem;
    right: .22rem;
  }
</style>
